home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Fonts / FontNumber.h < prev    next >
Encoding:
Text File  |  1997-06-28  |  543 b   |  32 lines  |  [TEXT/CWIE]

  1. // FontNumber.h
  2.  
  3. #ifndef FontNumber_h
  4. #define FontNumber_h
  5.  
  6. #ifndef Integers_h
  7. #include "Integers.h"
  8. #endif
  9.  
  10. class FontNumber
  11.   {
  12.     private:
  13.         int16 number;
  14.     
  15.         FontNumber( int16 value )
  16.           : number( value )
  17.           {}
  18.         
  19.     public:
  20.         static FontNumber Make( int16 value );
  21.     
  22.         static FontNumber System();
  23.         static FontNumber Application();
  24.         
  25.         int16 Value() const                            { return number; }
  26.         
  27.         bool operator==( FontNumber f ) const    { return number == f.number; }
  28.         bool operator!=( FontNumber f ) const    { return number != f.number; }
  29.   };
  30.  
  31. #endif
  32.